home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 80 lines | [TEXT/GEOL] |
- Item 5064610 5-April-88 11:34
-
- From: N0658 ESL, Robert Penland, ASC
-
- To: MACAPP$ MacApp Interest List
-
- Sub: MacApp datafields
-
-
- The development on my MacApp appletalk unit is continuing
- slowly. Another question has arisen though (as they always do).
- Are the data fields of a object fixed? That is, if I have a record
- structure like the following:
-
-
-
-
-
- DSPCommand=RECORD
-
- Command1:INTEGER;
-
- Command2:INTEGER;
-
- Command3:Str255;
-
- END;
-
-
-
-
-
- and a Document Object with a data field fDSPCommand of type
- DSPCommand. Then if I Have a requester object with a data field
- that keeps a reference to the document
- (i.e. fNothingDocument:TNothingDocument) can I use the following
- method to get a pointer to the data structure and will the pointer
- remain valid if there is a dreaded heap compaction?
-
-
-
-
-
-
-
-
-
- PROCEDURE TMyRequester.GiveRequestPtr(aByteCount:INTEGER;VAR
- aDataPtr:Ptr);OVERRIDE;
-
-
-
- BEGIN
-
- aDataPtr:=@SELF.fNothingDocument.fDSPCommand;
-
- END;
-
-
-
-
-
- Thanks,
-
- Wanna-be technoid
-
- Robert Penland
-
-
-
-
-
- P.S. a Note to Guillermo Ortiz, I still haven't received any of the
- literature on the Color table and Palette Manager that you said was
- forth coming.
-
-
-
-
-